package cn.work.service;
import cn.work.bean.serviceclassbean;
import cn.work.dao.serviceclassDao;
import javax.servlet.http.HttpServletResponse;
import java.sql.SQLException;
import java.util.List;
public class ClassService {

    private serviceclassDao cdao = new serviceclassDao();
//插入
    public boolean addCategory(String className) {
        return cdao.insertCategory(className);
    }
    // 获取所有分类的方法
    public List<serviceclassbean> getAllCategories() {
        return cdao.getAllCategories(); // 调用 DAO 获取数据
    }
}
